from django.conf.urls import patterns, include, url
from django.views.generic.simple import direct_to_template
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    
    url(r'^polls/', include('polls.urls')),
    
      
    url(r'^$', direct_to_template, {'template': 'poudres/base_poudre.html'}),
    url(r'^poudres/', include('poudres.urls')),  
    
    url(r'^clients/', include('clients.urls')),
    
    url(r'^commandes/', include('commandes.urls')),
    
    url(r'^autocompletion_poudre/', 'poudres.views.autocompletion'),
    url(r'^autocompletion_client/', 'clients.views.autocompletion'),
    url(r'^autocompletion/', 'polls.views.autocompletion'),
    url(r'^search/$', 'polls.views.search'),
    url(r'^search_poudre/$', 'poudres.views.search_poudre'),
    
    
)
